Readme
(Replication files for survey-based results of Gessler, Toth, and Wachs "No country for asylum seekers? How short-termexposure to refugees influences attitudes and votingbehavior in Hungary".)

survey_models.R reproduces our survey-data logistic regression models, their interaction plots, as well as a validity test from the appendix of the paper. It requires the installation of 4 packages:
-stargazer, for model tables
-jtools, ggplot2, ggpubr for the plots

The data is stored in survey_data.csv, with labels:
-town: the name of the respondent's settlement.
-region: the name of the respondent's region.
and binary variables:
-treatment: if the settlement was treated during the crisis.
-within_25km_of_border: if the settlement is within 25km of a national border.
-at_least_hs_degree: if the respondent claims to have at least a high school diploma.
-precarious_economic_situation: if the respondent describes his or her economic situation as precarious.
-male: if the respondent identifies as a man.
-voteright: if the respondent indicates a preference for the right-wing parties (Jobbik or Fidesz-KDNP).
-voteleft: if the respondent indicates a preference for any of the other parties (MSZP, DK, PM, LMP, Egyutt, Liberalisok, MKKP, other)
-votefidesz: if the respondent indicates a preference for Fidesz-KDNP.
-votejobbik: if the respondent indicates a preference for Jobbik.
-strong_border: if the respondent strongly favors increasing border security.
-no_refugees: if the respondent indicates Hungary should not accept any refugees at all.
-worry_undocumented: if the respondent expresses strong worry about the unchecked inflow of undocumented immigrants.
-worry_culture: if the respondent expresses strong worry about the inflow of immigrants of a different culture.
-law_protecting_culture: if the respondent expresses strong support for legislation that immigrants must respect Hungarian cultural normas.
-no_money_for_refugee: if the respondent expresses strong opposition to allocating funds for refugee integration.
-met_refugee_prev_12_months: if the respondent indicates he or she has encountered a refugee in the previous 12 months (i.e. January 2015-January 2016).
-personally_know_immigrant_or_ref: if the respondent reports knowing a refugee or immigrant personally.